package com.yunxi.model.activiti;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import lombok.Data;

import java.util.Date;

@TableName(value="activiti_tr_deploy")
@Data
public class ActivitiDeploy {

    @TableId(type = IdType.INPUT)
    private Long id;

    private String activitiModelId;

    private String activitiDeployId;

    @TableField(value = "CREATE_BY", fill = FieldFill.INSERT)
    private Long createBy;

    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value = "CREATE_DATE", fill = FieldFill.INSERT)
    private Date createDate;

    @TableField(value = "UPDATE_BY", fill = FieldFill.UPDATE)
    private Long updateBy;

    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value = "UPDATE_DATE", fill = FieldFill.UPDATE)
    private Date updateDate;

    private String activitiDeployImg;
}